package config

// TranscodePolicy is used to transcoding videos
type TranscodePolicy struct {
	Name       string
	Resolution [2]int
	Bitrate    int
}

var DefaultTranscodePolicies = []TranscodePolicy{
	{
		Name:       "240P",
		Resolution: [2]int{320, 240},
		Bitrate:    400000,
	},
	{
		Name:       "480P",
		Resolution: [2]int{640, 480},
		Bitrate:    800000,
	},
	{
		Name:       "720P",
		Resolution: [2]int{1280, 720},
		Bitrate:    1200000,
	},
	{
		Name:       "1080P",
		Resolution: [2]int{1920, 1080},
		Bitrate:    2400000,
	},
}
